package com.mxpio.erp.common.equipment.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.mxpio.erp.common.jpa.policy.BizCodeGeneratorPolicy;
import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.security.entity.BaseEntity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_EQUIPMENT_GROUP")
@Schema(description="设备组信息")
public class EquipmentGroup extends BaseEntity {

	private static final long serialVersionUID = 1L;
	
	@Id
	@Column(name = "EQ_GROUP_CODE_", updatable = false)
	@Generator(policy = BizCodeGeneratorPolicy.class)
	@Schema(description = "设备组编号")
	private String eqGroupCode;

}
